/*
 * Copyright 2019 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.constraint-modal-body {

  & > .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
  }

  .select-constraint {
    background-color: rgb(241, 242, 241);
    border: 1px solid #DDD;
    padding: 15px;
    color: #777;
    margin: 15px;

    .fa,
    span {
      display: inline-block;
      vertical-align: middle;
    }

    .fa {
      font-size: 2em;
      margin-right: 10px;
    }
  }

  [data-field="type"] {
    font-weight: bold;
    opacity: .8;
  }

  [data-field="constraint-component-container"] {
    border: 1px solid #DDD;
    margin-top: 15px;
    min-height: 200px;
  }

  input,
  textarea {
    &::-webkit-input-placeholder {
      font-style: italic;
    }

    &::-moz-placeholder {
      font-style: italic;
    }

    &:-moz-placeholder {
      font-style: italic;
    }

    &:-ms-input-placeholder {
      font-style: italic;
    }

    &.fluid-input {
      width: 100%;
    }
  }
}

.constraint-modal-footer {
  margin-top: -30px;
  margin-bottom: 10px;

  [data-field="clear-all-anchor"] {
    float: left;
    padding-left: 5px;
  }

  button.btn {
    width: 60px;
  }
}
